package com.songlanyun.modules.concerns.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 会员的关注表
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2021-01-12 10:07:49
 */
@Data
@TableName("yxt_user_concern")
public class UserConcern extends RootEntity<Long,UserConcern> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 关注人的id
	 */
	@NotNull(message = "关注人的id不能为空")
	private Long concernUserId;
	/**
	 * 被关注人的id
	 */
	@NotNull(message = "被关注人的id不能为空")
	private Long concernedUserId;
	/**
	 * 是否互相关注
	 */
	private Boolean eachConcern;
	/**
	 * 关注时间
	 */
	private Date concernTime;

	@Override
	public Long getIdentity() {
		return getId();
	}
}
